package org.example.File;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2024-06-03
 * Time:11:27
 * Text：
 */
public class FileUpdate {
    void Test1(){
        ChromeOptions options = new ChromeOptions();
        options.setBinary("D:\\chrome\\chrome.exe");
        options.addArguments("--remote-allow-origins=*");
        WebDriver driver = new ChromeDriver(options);
        driver.get("https://www.baidu.com");
        driver.findElement(By.cssSelector("input")).sendKeys("目录");
        //关闭浏览器
        driver.quit();
        driver.close();
    }
    public static void main(String[] args) {

    }
}
